package com.bdqn.mongodb2.service;

import com.bdqn.mongodb2.entity.Book;
import com.mongodb.client.result.DeleteResult;
import com.mongodb.client.result.UpdateResult;

import java.util.List;

public interface BookService {
    public List<Book> findAllBooks();

    public Book findBookById(int id);

    public Book addBook(Book book);

    public UpdateResult updateBook(Book book);

    public DeleteResult deleteBook(int id);

    public List<Book> findLike(String name);
}
